package br.com.devmedia.util;

public class UtilErros {

	public static String getMensagemErro(Exception e) {
		while (e.getCause() != null) {
			e = (Exception) e.getCause();
		}

		return e.getMessage();
	}
}
